package com.xiaotao.mapper;

import com.xiaotao.entity.Coupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponMapper {
    List<Coupon> queryAll();
    Coupon queryById(@Param("id") Integer id);
    Integer update(Coupon coupon);
    Integer add(Coupon coupon);
    Integer delete(@Param("id") Integer id);
    Integer updateStatus(@Param("id") Integer id, @Param("status") Integer status);
}
